#pragma once

#ifdef __cplusplus
extern "C" {
#endif
/* Includes ----------------------------------------------------------------- */
#include "../bsp/bsp_usart.h"
/* Exported constants ------------------------------------------------------- */
/* Exported macro ----------------------------------------------------------- */
/* Exported types ----------------------------------------------------------- */
typedef enum {
  HEADER_ID1 = 0x40,
  HEADER_ID2 = 0x7B,
} Interact_HeaderID_t;

typedef enum {
  TAILER_ID1 = 0x5B,
} Interact_TailerID_t;

typedef struct {
  float x;
  float y;
} Interact_Coordinate_t;
/* Exported functions prototypes -------------------------------------------- */

int8_t Uart_PraseData(UartRx_t *uart, uint8_t rx_data[],
                      Interact_Coordinate_t *coordinate);
#ifdef __cplusplus
}
#endif
